package com.manage.platform.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.manage.platform.entity.TaskFileEntity;
import com.manage.platform.mapper.TaskFileMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * YWD
 * 2025/9/25
 */
@AllArgsConstructor
@Service
public class TaskFileServiceImpl extends ServiceImpl<TaskFileMapper, TaskFileEntity> {


    public Boolean removeByTaskId(Long taskId) {
        LambdaQueryWrapper<TaskFileEntity> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(TaskFileEntity::getTaskId, taskId);
        return this.remove(queryWrapper);
    }


}
